/*
* jlb
*/
package com.jlb.platform.entity;

/**
 * 各种余额类型
 * 状态:金兰宝 Jlb，矿石 Ore，激活币 Active
 *
 * @author jlb
 */
public enum Type implements java.io.Serializable {
    Jlb("金兰宝"),
    Ore("矿石"),
    Active("激活币"),;

    public String val;

    Type(String val) {
        this.val = val;
    }

    /**
     * 根据状态名称查询状态
     *
     * @param stateName
     * @return
     */
    public static Type getEnum(String stateName) {
        for (Type platformAccountState : Type.values()) {
            if (platformAccountState.name().equalsIgnoreCase(stateName)) {
                return platformAccountState;
            }
        }
        return null;
    }

    @Override
    public String toString() {
        return this.name();
    }

}
